home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / UUCP / UUCon / Source / info.subproj / InfoController.m < prev    next >
Text File  |  1994-01-29  |  671b  |  38 lines

  1. #import "InfoController.h"
  2. #import "StringStorage.h"
  3.  
  4. @implementation InfoController
  5.  
  6. - init
  7. {
  8.    [super init];
  9.  
  10.    version = [[StringStorage alloc] init];
  11.    return self;
  12. }
  13.  
  14. - setVersionValue: (const char *)ver
  15. {
  16.    [version setStringValue: ver];
  17.    return self;
  18. }
  19.  
  20. - makeKeyAndOrderFront:sender
  21. {
  22.    if(!panel)
  23.    {
  24.       char buf[MAXPATHLEN + 1];
  25.  
  26.       [[NXBundle bundleForClass:[self class]] 
  27.             getPath:buf  forResource: "info" ofType:"nib"];
  28.    
  29.       [NXApp loadNibFile:buf owner:self withNames:NO fromZone:[self zone]];
  30.       [versionText setStringValue: [version stringValue]];
  31.    }
  32.    
  33.    [panel makeKeyAndOrderFront: sender];
  34.    return self;
  35. }
  36.  
  37. @end
  38.